package rpc.conf;

import org.apache.commons.lang3.StringUtils;

/*********
 *
 *
 *@author 197
 *@date 2020/6/18 21:08
 *
 **/


public class ServiceConfig {

  private String interfaceName;
  private String group;
  private int port;
  private int checkPort;

  public int getCheckPort() {
    return checkPort;
  }

  public ServiceConfig setCheckPort(int checkPort) {
    this.checkPort = checkPort;
    return this;
  }

  public String getInterfaceName() {
    return interfaceName;
  }

  public void setInterfaceName(String interfaceName) {
    this.interfaceName = StringUtils.replace(interfaceName, " ", "");
  }

  public String getGroup() {
    return group;
  }

  public void setGroup(String group) {
    this.group = group;
  }

  public int getPort() {
    return port;
  }

  public void setPort(int port) {
    this.port = port;
  }


  @Override
  public String toString() {
    return "ServiceConfig{" +
        "interfaceName='" + interfaceName + '\'' +
        ", group='" + group + '\'' +
        ", port=" + port +
        '}';
  }
}
